package edu.xmut.kakamusic.bean.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class MusicUrlVO {

    public Long id;
    public String url;
    public Long br;
    public Long size;
    public String md5;
    public Long code;
    public Long expi;
    public String type;
    public Long gain;
    public Long peak;
    public Long closedGain;
    public Long closedPeak;
    public Long fee;
    public Object uf;
    public Long payed;
    public Long flag;
    public Boolean canExtend;
    public Object freeTrialInfo;
    public String level;
    public String encodeType;
    public Object channelLayout;
    public FreeTrialPrivilegeDTO freeTrialPrivilege;
    public FreeTimeTrialPrivilegeDTO freeTimeTrialPrivilege;
    public Long urlSource;
    public Long rightSource;
    public Object podcastCtrp;
    public Object effectTypes;
    public Long time;
    public Object message;
    public Object levelConfuse;
    public String musicId;

    @NoArgsConstructor
    @Data
    public static class FreeTrialPrivilegeDTO {
        public Boolean resConsumable;
        public Boolean userConsumable;
        public Object listenType;
        public Object cannotListenReason;
        public Object playReason;
        public Object freeLimitTagType;
    }

    @NoArgsConstructor
    @Data
    public static class FreeTimeTrialPrivilegeDTO {
        public Boolean resConsumable;
        public Boolean userConsumable;
        public Long type;
        public Long remainTime;
    }
}
